<?php #coding: utf-8 æ ø å 

	

foreach($beskrivelser as $b){
	foreach($b as $r){
		if($r == "&0"){
			$b[] = "FEJL";
		}elseif($r == "&1"){
			$b[$r] = "MANGLER";
		}
	}

	echo "<p class='rubrik'><b>Id:</b><span class='rubrik'>".$b['id']."</span></p>";
// OVERSKRIFT 
	echo "<p class='rubrik'><b>Overskrift: </b><span class='ink'>".$b['overskrift']."</span></p>";
// TEKST 
    echo "<p class='rubrik'><b>Tekst: </b>".anchor("admin/beskrivelser/vis/".$b['id'], "<span class='ink'>".substr($b['tekst'],0,40)."</span>", "class='ink'")."</p>";
	echo "</ul></i></table>";
// OMHANDLER 
    echo "<p class='rubrik'><b>Omhandler: </b><span class='ink'>".$b['omhandler_navn']." [".$b['omhandler_id']."]</span></p>"; 
// FEATURE
    echo "<p class='rubrik'><b>Feature: </b><span class='ink'>".$b['feature']."</span></p>"; 
// FORFATTER
	 echo "<p class='rubrik'><b>Forfatter: </b>";
		if($b['type_game'] == "off_game"){
			echo "<span class='rubrik'>".$deltager['fornavn']."</span>";
		}elseif($b['type_game'] == "in_game"){
			echo "<span class='ink'>".$b['forfatter_navn']." [".$b['forfatter_id']."]</span>";
		}
	echo "</p>";
// DATO (ingame)
	echo "<p class='rubrik'><b>Tid (ingame): </b><span class='ink'>".$b['ingame_tid_navn']."</span></p>";
// SLETTET 
     	echo "<p class='rubrik'><b>Slettet: </b><span class='rubrik'>"; 
		if($b['slettet'] == 1){ 
			echo "Ja"; 
		}elseif($b['slettet'] == 0){ 
			echo "Nej"; 
		}else{ 
			echo "FEJL: eksistens ikke afgjort!";
		}  
	echo "</p>";
// OPRETTET 
	echo "<p class='rubrik'><b>Oprettet: </b><span class='ink'>".date('Y-m-d',$b['created'])."</span></p>";
// ÆNDRET
	echo "<p class='rubrik'><b>Ændret: </b><span class='ink'>".date('Y-m-d',$b['updated'])."</span></p>";
// DELING 
	echo "<p class='rubrik'><b>Deling: </b><span class='ink'>".$b['hemmelig']."</span></p>";

	echo br(2);
}
/*

?>

<script type="text/javascript">
$(document).ready(function() 
    { 
        $("#myTable").tablesorter(); 
    } 
); 
</script>

<table id="myTable" class="tablesorter" style="font-size:9px;"> 
<thead> 

<tr> 
<!--    <th><span class="rubrik">Id</span></th>  -->

<!--    <th><span class="rubrik">Overskrift</span></th> -->
    <th><span class="rubrik">Tekst [id]</span></th> 
	<th><span class="rubrik">Omhandler [id]</span></th> 
    <th><span class="rubrik">Egenskab</span></th>
    <th><span class="rubrik">Forfatter</span></th> 
    <th><span class="rubrik">Dato<br>(ingame)</span></th>
    <th><span class="rubrik">Slettet?</span></th>
<!--    <th><span class="rubrik">Oprettet</span></th> -->
    <th><span class="rubrik">Ændret</span></th>
<!--    <th><span class="rubrik">Deling</span></th> -->

</tr> 
</thead> 
<tbody> 
<? foreach($beskrivelser as $b){
	foreach($b as $r){
		if($r == "&0"){
			echo "hej";
			$b[] = "FEJL";
		}elseif($r == "&1"){
			$b[$r] = "MANGLER";
		}
	}
?>
<tr> 
<!-- ID -->
<!--    <td><? echo "<span class='rubrik'>".$b['id']."</span>"; ?></td> -->
<!-- OVERSKRIFT -->
<!--    <td><? echo "<span class='ink'>".$b['overskrift']."</span>"; ?></td> -->
<!-- TEKST -->
    <td style="border-bottom:1px solid grey;"><? echo anchor("admin/beskrivelser/vis/".$b['id'], "<span class='ink'>".substr($b['tekst'],0,40)."</span>", "class='ink'"); ?></td>
<!-- OMHANDLER -->
    <td style="border-bottom:1px solid grey;"><? echo "<span class='ink'>".$b['omhandler_navn']." [".$b['omhandler_id']."]</span>"; ?></td>
<!-- FEATURE -->
    <td style="border-bottom:1px solid grey;"><? echo "<span class='ink'>".$b['feature']."</span>"; ?></td>
<!-- FORFATTER -->
	<td style="border-bottom:1px solid grey;"><?
;
		if($b['type_game'] == "off_game"){
			echo "<span class='rubrik'>".$deltager['fornavn']."</span>";
		}elseif($b['type_game'] == "in_game"){
			echo "<span class='ink'>".$b['forfatter_navn']." [".$b['forfatter_id']."]</span>";
		}
	?></td>
<!-- DATO (ingame) -->
	<td style="border-bottom:1px solid grey;"><? echo "<span class='ink'>".$b['ingame_tid_navn']."</span>"; ?>
<!-- SLETTET -->
    <td style="border-bottom:1px solid grey;">
		<? 	echo "<span class='rubrik'>"; 
		if($b['slettet'] == 1){ 
			echo "Ja"; 
		}elseif($b['slettet'] == 0){ 
			echo "Nej"; 
		}else{ 
			echo "FEJL: eksistens ikke afgjort!";
		} ?>
	</td>  
<!-- OPRETTET -->
<!--	<td> <? echo "<span class='ink'>".date('Y-m-d',$b['created'])."</span>";?></td> -->
<!-- ÆNDRET -->
	<td style="border-bottom:1px solid grey;"> <? echo "<span class='ink'>".date('Y-m-d',$b['updated'])."</span>";?></td>
<!-- DELING -->
<!--	<td> <? echo "<span class='ink'>".$b['hemmelig']."</span>";?></td> -->

</tr> 
<? } ?>
</tbody> 
</table> 
*/ ?>
